package com.self.smallma.myblogweb.vo;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class RegisterVo {
    @NotEmpty(message = "手机号不能为空")
    @Pattern(regexp = "^[1][0-9]{10}$")
    private String phone;
    @Email(message = "必须填写正确的邮箱格式")
    private String email;
    @NotEmpty(message = "密码不能为空")
    private String password;
    @NotEmpty(message = "验证码不能为空")
    private String code;
    @NotEmpty(message = "昵称不能为空")
    private String nickname;

    @NotEmpty(message = "用户名不能为空")
    private String username;
}
